package summer_vacation.lvchang.myyVacation;
import java.util.Scanner;

/**
 * Created by Administrator on 2015/9/6.
 */
public class Text23 {
    public static void main(String[] args) {
        int grade;
        Scanner s = new Scanner(System.in);
        System.out.println("请输入您的分数：");
        grade = s.nextInt();
        if(grade>90 && grade<100){
            System.out.println("您的考试成绩等级为：A");
        }
       else if(grade>80 && grade<90){
            System.out.println("您的考试成绩等级为：B");
        }
        else if(grade>70 && grade<79){
            System.out.println("您的考试成绩等级为：C");
        }
        else if(grade>60 && grade<69){
            System.out.println("您的考试成绩等级为：D");
        }
        else if(grade<60){
            System.out.println("您的考试成绩等级为：E");
        }else{
            System.out.println("*****你的输入有误！分数必须介于1到100之间！*****");
        }
        }
    }

